Skip to content

fix(cache): prevent unreadable oversized fingerprints#553

Merged
wan9chi merged 1 commit into
mainfrom
agent/bump-wincode-0.6
Jul 21, 2026
Merged

fix(cache): prevent unreadable oversized fingerprints#553
wan9chi merged 1 commit into
mainfrom
agent/bump-wincode-0.6

Conversation

@wan9chi

@wan9chi wan9chi commented Jul 21, 2026

Copy link
Copy Markdown
Member

Motivation

wincode 0.5.2 enforced its default preallocation limit when deserializing dynamic maps but not when serializing them. A large inferred-input fingerprint could therefore be persisted successfully and then fail on the next cache lookup with Encoded sequence length exceeded preallocation limit, leaving a cache entry that its writer could not read back.

Changes

  • bump wincode from 0.5.2 to 0.6.0, which applies the preallocation check symmetrically

This preserves the 4 MiB preallocation policy while preventing oversized fingerprints from poisoning later cache lookups. Formatting, workspace checks, default tests, Clippy, and rustdoc pass locally.

wan9chi commented Jul 21, 2026

Copy link
Copy Markdown
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@socket-security

socket-security Bot commented Jul 21, 2026

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatedcargo/​wincode@​0.5.2 ⏵ 0.6.08210093100100

View full report

Co-authored-by: GPT-5.6 Codex <codex@openai.com>
@wan9chi
wan9chi force-pushed the agent/bump-wincode-0.6 branch from 4ef4422 to 32279ad Compare July 21, 2026 02:58
@wan9chi
wan9chi marked this pull request as ready for review July 21, 2026 03:05
@wan9chi
wan9chi merged commit 16429a5 into main Jul 21, 2026
16 checks passed
@wan9chi
wan9chi deleted the agent/bump-wincode-0.6 branch July 21, 2026 03:07

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 32279ad85b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread Cargo.toml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant